package com.qingxin.park.vo;

import java.util.ArrayList;
import java.util.List;

import org.codehaus.jackson.map.annotate.JsonSerialize;

@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class TraceRecord {
	
	private String recordid;
	private String linkName;
	private String linkIcon;
	private String linkType;
	private String workdate;//yyyy-MM-dd
	private String worktime;//时间：上午/下午
	private String workerName;
	private String plantStatus;//作物状态：未成熟/已成熟
	private String remark;
	
	private List<TraceRecordImg> imgs = new ArrayList<>();
	private TraceRecordMaterial mat;
	
	public TraceRecord() {
	}
	
	
	public TraceRecord(String recordid, String linkName,
			String workdate, String worktime, String workerName,
			String plantStatus, String remark) {
		this.recordid = recordid;
		this.linkName = linkName;
		this.workdate = workdate;
		this.worktime = worktime;
		this.workerName = workerName;
		this.plantStatus = plantStatus;
		this.remark = remark;
	}


	public String getRecordid() {
		return recordid;
	}
	public void setRecordid(String recordid) {
		this.recordid = recordid;
	}
	public String getLinkName() {
		return linkName;
	}
	public void setLinkName(String linkName) {
		this.linkName = linkName;
	}
	public String getLinkIcon() {
		return linkIcon;
	}
	public void setLinkIcon(String linkIcon) {
		this.linkIcon = linkIcon;
	}
	public String getLinkType() {
		return linkType;
	}
	public void setLinkType(String linkType) {
		this.linkType = linkType;
	}
	public String getWorkdate() {
		return workdate;
	}
	public void setWorkdate(String workdate) {
		this.workdate = workdate;
	}
	public String getWorktime() {
		return worktime;
	}
	public void setWorktime(String worktime) {
		this.worktime = worktime;
	}
	public String getWorkerName() {
		return workerName;
	}
	public void setWorkerName(String workerName) {
		this.workerName = workerName;
	}
	public String getPlantStatus() {
		return plantStatus;
	}
	public void setPlantStatus(String plantStatus) {
		this.plantStatus = plantStatus;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}


	public List<TraceRecordImg> getImgs() {
		return imgs;
	}
	public void setImgs(List<TraceRecordImg> imgs) {
		this.imgs = imgs;
	}
	public void addImg(TraceRecordImg img){
		imgs.add(img);
		
	}

	public TraceRecordMaterial getMat() {
		return mat;
	}
	public void setMat(TraceRecordMaterial mat) {
		this.mat = mat;
	}
	
}
